namespace chatroom{
    #pragma db object table("chat_session_member");
    //会话成员表
    class ChatSessionMember{
    public:
        ChatSessionMember(){}
        ChatSessionMember(const std::string& ssid,const std::string& uid):_session_id(ssid),_user_id(uid){}

        void set_session_id(const std::string& val)
        {
            _session_id = val;
        }
        std::string get_session_id()
        {
            return _session_id;
        }

        void set_user_id(const std::string& val)
        {
            _user_id = val;
        }
        std::string get_user_id()
        {
            return _user_id;
        }
    private:
        friend class odb::access;
        #pragma db id auto
        unsigned long _id;
        #pragma db type("VARCHAR(64)") index
        std::string _session_id;
        #pragma db type("VARCHAR(64)")
        std::string _user_id;
    };
}